﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Configuration;
using System.Data.SqlClient;
using System.Data;
using System.Web.Security;
using WebApplication10.App_Code;

namespace WebApplication10
{
    public partial class LoginPage : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {

        }

        protected void Button2_Click(object sender, EventArgs e)
        {
            Response.Redirect("~/HomePage.aspx");
        }

        protected void Button1_Click(object sender, EventArgs e)
        {
            JobSeeker js = JobSeeker.GetJobSeekerByUsername(LoginUsername.Text);

            if (js.Password == LoginPassword.Text)
            {
                FormsAuthentication.RedirectFromLoginPage(LoginUsername.Text, false);
            }


            Response.Redirect("~/MasterEmployeeUI.aspx");
        }
    }
}